<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title>电子档案管理系统</title>
    <link rel="stylesheet" href="../css/font-awesome.min.css">
    <link rel="stylesheet" href="../bootstrap-3.3.4/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="bootstrap-3.3.4/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/common.css">
    <script src="../js/jquery-1.11.3.js"></script>

    <script src="../bootstrap-3.3.4\dist\js\bootstrap.min.js"></script>
    <style type="text/css">
        body {
            background: rgba(0, 0, 0, 0);
            color: #fff;
        }

        .content {
            position: absolute;
            background: rgba(0, 0, 0, 0.7);
            width: 100%;
            height: 100%;
            top: 50px;
            padding: 0;

        }

        .navbar {
            background: rgba(0, 0, 0, 0.7);
            border: none;
            border-radius: 0;
        }

        .main-box {
            width: 343px;
            background: rgba(0, 0, 0, 0.1);
            border-radius: 5px;
            position: relative;
            margin: 30px 50%;
            left: -171px;
            box-sizing: border-box;
            overflow: hidden;

        }

        .register-box {
            display: none;
        }

        .main-box input {
            margin-bottom: 10px;
        }

        .main-box,
        .login-box,
        .register-box {
            padding: 0;
            margin-bottom: 10px;
            position: relative;
        }

        .main-box .login-box img,
        .main-box .register-box img {
            width: 220px;
            height: 220px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
            margin: 0 auto;
            -webkit-transition: all 1s;
        }

        .clickRotate {
            -webkit-transform: rotateY(180deg);
        }

        .btn-box {
            width: 100%;
        }

        button {
            width: 50%;
        }

        .btn-box button {
            width: 50%;
            float: left;
            margin: 0;
            font-size: 20px;
            font-weight: 700;
            line-height: 45px;
            border: none;
            margin-bottom: 10px;
            background: none;
            -webkit-transition: all 1s;
        }

        .btn-box button:hover,
        .btn-box button:focus,
        .btn-box button:active,
        .btn-box button:visited {
            background: none;
            border: none;
            outline: none;
        }

        label {
            color: #bce8f1;
            font-size: 20px;
            font-family: 微软雅黑;
        }

        span {
            font-size: 20px;
            font-family: 微软雅黑;
            color: #cdddeb;
        }
    </style>
</head>
<body>

<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <form class="form-group" action="finishmodify" method="post">
                <fieldset>


                    <input type="hidden" name="accountId" value="<s:property value="accountBeingModify.accountId" />">
                    <input type="hidden" name="pwd" value="<s:property value="accountBeingModify.accountPsw" />">
                    <%--<label>用户帐号:</label>--%><input type="hidden" name="userName"
                                                       value="<s:property value="accountBeingModify.accountAc" />"/>
                    <br>
                    <label>用户姓名:</label><input type="text" name="nickname" class="form-control"
                                               style="display: inline;width: 20%;"
                                               value="<s:property value="accountBeingModify.accountNickname" />"/>

                    <br>
                    <br>
                    <label>联系方式:</label><input type="text" name="contact" class="form-control"
                                               style="display: inline;width: 20%;"
                                               value="<s:property value="accountBeingModify.accountContact" />"/>
                    <br>
                    <br>
                    <label>用户性别:</label>

                    <s:if test="accountBeingModify.accountGender==0">
                        <input type="radio" name="gender" value="0" checked/><span>女</span>
                        <input type="radio" name="gender" value="1"/><span>男</span>
                    </s:if>
                    <s:else>
                        <input type="radio" name="gender" value="0"/><span>女</span>
                        <input type="radio" name="gender" value="1" checked/><span>男</span>
                    </s:else>
                    </select>

                    <br>
                    <br>

                    <div style="color: #101010;font-family: 微软雅黑;font-size: 16px;"><label>用户角色:</label>

                        <%-- <s:select list="amRolesList" listKey="key"
                                   listValue="value"
                                   name="accountRole" label="用户角色"
                                   value="accountBeingModify.accountRole.roleId"/>--%>
                        <select name="accountRole">
                            <s:iterator value="amRolesList" id="dep">
                                <s:if test="roleId==accountBeingModify.accountRole.roleId ">
                                    <option value="<s:property value="roleId"/>" selected><s:property
                                            value="roleName"/></option>
                                </s:if>
                                <s:else>
                                    <option value="<s:property value="roleId"/>"><s:property
                                            value="roleName"/></option>
                                </s:else>

                            </s:iterator>
                        </select>

                    </div>


                    <br>

                    <div style="color: #101010; font-family: 微软雅黑;font-size: 16px;"><label>所在部门:</label><%--<input type="text" name="accountDepartment"
                                               value="<s:property value="accountBeingModify.accountDepartment.departmentName" />"/>--%>

                        <%-- <s:select list="amDepartmentsList"
                                   listKey="key"
                                   listValue="value"
                                   name="accountDepartment" label="用户角色"
                                   value="accountBeingModify.accountDepartment.departmentId"/>--%>

                        <select name="accountDepartment">
                            <s:iterator value="amDepartmentsList" id="dep">
                                <s:if test="departmentId==accountBeingModify.accountDepartment.departmentId">
                                    <option value="<s:property value="departmentId"/>" selected><s:property
                                            value="departmentName"/></option>
                                </s:if>
                                <s:else>
                                    <option value="<s:property value="departmentId"/>"><s:property
                                            value="departmentName"/></option>
                                </s:else>

                            </s:iterator>
                        </select>
                    </div>
                    <br>


                    <br>
                    <%-- <button type="submit" class="btn">提交</button>--%>


                    <input type="submit" class="btn btn-primary" style="font-size: 18px;" name="sub" value="修改">
                    <br>
                    <br>
                    <input type="button" class="btn btn-success"
                           name="Submit" onclick="javascript:history.back(-1);" value="返回上一页">

                </fieldset>
            </form>

        </div>
    </div>
</div>


</body>
</html>
